# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(bugsnag_plugin_ohos_anr)
add_library( # Specifies the name of the library.
             bugsnag_plugin_ohos_anr
             # Sets the library as a shared library.
             SHARED
             # Provides a relative path to your source file(s).
    jni/anr_google.c
    jni/anr_handler.c
    jni/bugsnag_anr.c
    jni/utils/string.c
    )

include_directories(jni)

target_link_libraries( # Specifies the target library.
                     bugsnag_plugin_ohos_anr
                     # Links the log library to the target library.
                     libhilog_ndk.z.so)

set_target_properties(bugsnag_plugin_ohos_anr
                      PROPERTIES
                      COMPILE_OPTIONS
                      -Werror -Wall -pedantic)
